package dwei.core.extend
{
	import flash.events.Event;
	
	/**
	 * 继承于 <code>flash.events.Event</code><br/>
	 * 扩展：传递数据(属性：<code>data</code>)
	 */	
	public class EventEx extends Event
	{
		protected var _data:*;
		
		public function EventEx(type:String, data:* = null, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			_data = data;
		}
		
		override public function clone():Event
		{
			return new EventEx(type, data, bubbles, cancelable);
		}
		
		public function get data():*
		{
			return _data;
		}
	}
}